from django.db import models

# Create your models here.

class login_registration(models.Model):
    # objects = None
    # python manage.py makemigrations
    # python manage.py migrate
    uid = models.AutoField(primary_key=True)
    username = models.CharField(max_length=50)
    # 修改表的属性（用于处理 数据库不区分大小写）
    # ALTER TABLE login_regist MODIFY COLUMN `username` VARCHAR(50) BINARY CHARACTER SET utf8 COLLATE utf8_bin;
    password = models.CharField(max_length=50)
    phone = models.CharField(max_length=50)

    class Meta:
        db_table = 'login_regist'